#ifndef COMMON_H
#define COMMON_H

#define DATABASE_PATH "D:/SchoolWork/Emb2024/QtProjects/VehicleMultimedia/SQLite/"

#define WEATHER_URL "http://v1.yiketianqi.com/api?unescape=1&version=v91&appid=%1&appsecret=%2&ext=&adcode=%3"
// %1-APPID  %2-APPSECRET  %3-行政区域编码
#define APPID "98835284"
#define APPSECRET "9JkULdIo"

#define DEFAULT_ADCODE 11 // 默认地区码北京

#define MAP_URL "https://api.map.baidu.com/staticimage/v2?ak=%1&width=%2&height=%3&zoom=%4&scale=2&center=%5,%6"
// %1-AK  %2-图像宽度  %3-图像高度  %4-地图级别  %5-经度  %6-维度
#define MAP_AK "JzK0hAeCY1IJfaMGXNKjttSZI0ltKLS3"

#define MAP_URL_IP "https://api.map.baidu.com/location/ip?ip=%1&coor=bd09ll&ak=%2"
// %1-IP地址  %2-AK
#define MAP_IP "183.223.222.48"

#define MAP_URL_CITYNAME "https://api.map.baidu.com/geocoding/v3/?address=%1&output=json&ak=%2"
// %1-地区名称  %2-AK

#endif // COMMON_H
